﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class RandomGenerator
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class RandomGenerator
   ">
    <meta name="generator" content="docfx 2.18.2.0">
    
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="../../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../../styles/docfx.css">
    <link rel="stylesheet" href="../../styles/main.css">
    <meta property="docfx:navrel" content="../../toc.html">
    <meta property="docfx:tocrel" content="../toc.html">
    
    
  </head>
  <body data-spy="scroll" data-target="#affix">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../../index.html">
                <img id="logo" class="svg" src="../../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="TorchSharp.RandomGenerator">
  
  
  <h1 id="TorchSharp_RandomGenerator" data-uid="TorchSharp.RandomGenerator">Class RandomGenerator
  </h1>
  <div class="markdown level0 summary"><p>Random class</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">RandomGenerator</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="../TorchSharp.html">TorchSharp</a></h6>
  <h6><strong>Assembly</strong>: TorchSharp.dll</h6>
  <h5 id="TorchSharp_RandomGenerator_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RandomGenerator : IDisposable</code></pre>
  </div>
  <h5 id="TorchSharp_RandomGenerator_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Behind the scenes this is the THGenerator API and THRandom combined into
            one as THRandom are just convenience methods on top of THGenerator.</p>
</div>
  <h3 id="constructors">Constructors
  </h3>
  
  
  <a id="TorchSharp_RandomGenerator__ctor_" data-uid="TorchSharp.RandomGenerator.#ctor*"></a>
  <h4 id="TorchSharp_RandomGenerator__ctor" data-uid="TorchSharp.RandomGenerator.#ctor">RandomGenerator()</h4>
  <div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="TorchSharp.RandomGenerator.html">RandomGenerator</a> class.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public RandomGenerator ();</code></pre>
  </div>
  <h3 id="properties">Properties
  </h3>
  
  
  <a id="TorchSharp_RandomGenerator_InitialSeed_" data-uid="TorchSharp.RandomGenerator.InitialSeed*"></a>
  <h4 id="TorchSharp_RandomGenerator_InitialSeed" data-uid="TorchSharp.RandomGenerator.InitialSeed">InitialSeed</h4>
  <div class="markdown level1 summary"><p>Returns the starting seed used.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public ulong InitialSeed { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.UInt64</span></td>
        <td><p>The initial seed.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_RandomGenerator_IsValid_" data-uid="TorchSharp.RandomGenerator.IsValid*"></a>
  <h4 id="TorchSharp_RandomGenerator_IsValid" data-uid="TorchSharp.RandomGenerator.IsValid">IsValid</h4>
  <div class="markdown level1 summary"><p>Gets a value indicating whether this <a class="xref" href="TorchSharp.RandomGenerator.html">RandomGenerator</a> is valid.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool IsValid { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if is valid; otherwise, <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  
  
  <a id="TorchSharp_RandomGenerator_Dispose_" data-uid="TorchSharp.RandomGenerator.Dispose*"></a>
  <h4 id="TorchSharp_RandomGenerator_Dispose" data-uid="TorchSharp.RandomGenerator.Dispose">Dispose()</h4>
  <div class="markdown level1 summary"><p>Releases all resource used by the <a class="xref" href="TorchSharp.RandomGenerator.html">RandomGenerator</a> object.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void Dispose ();</code></pre>
  </div>
  <h5 id="TorchSharp_RandomGenerator_Dispose_remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Call Dispose when you are finished using the <a class="xref" href="TorchSharp.RandomGenerator.html">RandomGenerator</a>. This
            method leaves the <a class="xref" href="TorchSharp.RandomGenerator.html">RandomGenerator</a> in an unusable state. After
            calling this method, you must release all references to the <a class="xref" href="TorchSharp.RandomGenerator.html">RandomGenerator</a>
            so the garbage collector can reclaim the memory that the <a class="xref" href="TorchSharp.RandomGenerator.html">RandomGenerator</a> was occupying.</p>
</div>
  
  
  <a id="TorchSharp_RandomGenerator_Dispose_" data-uid="TorchSharp.RandomGenerator.Dispose*"></a>
  <h4 id="TorchSharp_RandomGenerator_Dispose_System_Boolean_" data-uid="TorchSharp.RandomGenerator.Dispose(System.Boolean)">Dispose(Boolean)</h4>
  <div class="markdown level1 summary"><p>Dispose the specified disposing.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected virtual void Dispose (bool disposing);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">disposing</span></td>
        <td><p>If set to <code>true</code> disposing.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_RandomGenerator_Finalize_" data-uid="TorchSharp.RandomGenerator.Finalize*"></a>
  <h4 id="TorchSharp_RandomGenerator_Finalize" data-uid="TorchSharp.RandomGenerator.Finalize">Finalize()</h4>
  <div class="markdown level1 summary"><p>Releases unmanaged resources and performs other cleanup operations before the
            <a class="xref" href="TorchSharp.RandomGenerator.html">RandomGenerator</a> is reclaimed by garbage collection.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">~RandomGenerator ();</code></pre>
  </div>
  
  
  <a id="TorchSharp_RandomGenerator_InitRandomSeed_" data-uid="TorchSharp.RandomGenerator.InitRandomSeed*"></a>
  <h4 id="TorchSharp_RandomGenerator_InitRandomSeed" data-uid="TorchSharp.RandomGenerator.InitRandomSeed">InitRandomSeed()</h4>
  <div class="markdown level1 summary"><p>Initializes the random number generator from /dev/urandom or in Windows with the current time.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public ulong InitRandomSeed ();</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.UInt64</span></td>
        <td><p>The random seed.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_RandomGenerator_InitWithSeed_" data-uid="TorchSharp.RandomGenerator.InitWithSeed*"></a>
  <h4 id="TorchSharp_RandomGenerator_InitWithSeed_System_UInt64_" data-uid="TorchSharp.RandomGenerator.InitWithSeed(System.UInt64)">InitWithSeed(UInt64)</h4>
  <div class="markdown level1 summary"><p>Initializes the random number generator with the given seed.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void InitWithSeed (ulong seed);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.UInt64</span></td>
        <td><span class="parametername">seed</span></td>
        <td><p>Seed.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_RandomGenerator_NextBernoulliDouble_" data-uid="TorchSharp.RandomGenerator.NextBernoulliDouble*"></a>
  <h4 id="TorchSharp_RandomGenerator_NextBernoulliDouble_System_Double_System_Single_" data-uid="TorchSharp.RandomGenerator.NextBernoulliDouble(System.Double,System.Single)">NextBernoulliDouble(Double, Single)</h4>
  <div class="markdown level1 summary"><p>Returns true with double probability $p$ and false with probability 1-p (p &gt; 0).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public float NextBernoulliDouble (double mean, float p);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">mean</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">p</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_RandomGenerator_NextBernoulliDouble_" data-uid="TorchSharp.RandomGenerator.NextBernoulliDouble*"></a>
  <h4 id="TorchSharp_RandomGenerator_NextBernoulliDouble_System_Double_System_Double_" data-uid="TorchSharp.RandomGenerator.NextBernoulliDouble(System.Double,System.Double)">NextBernoulliDouble(Double, Double)</h4>
  <div class="markdown level1 summary"><p>Returns true with double probability $p$ and false with probability 1-p (p &gt; 0).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double NextBernoulliDouble (double mean, double p);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">mean</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">p</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_RandomGenerator_NextCauchyDouble_" data-uid="TorchSharp.RandomGenerator.NextCauchyDouble*"></a>
  <h4 id="TorchSharp_RandomGenerator_NextCauchyDouble_System_Double_System_Double_" data-uid="TorchSharp.RandomGenerator.NextCauchyDouble(System.Double,System.Double)">NextCauchyDouble(Double, Double)</h4>
  <div class="markdown level1 summary"><p>Returns a random number from a Cauchy distribution.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double NextCauchyDouble (double median, double sigma);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">median</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">sigma</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="TorchSharp_RandomGenerator_NextCauchyDouble_System_Double_System_Double__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>The Cauchy density is $p(x) = sigma/(pi*(sigma^2 + (x-median)^2))$</p>
</div>
  
  
  <a id="TorchSharp_RandomGenerator_NextDouble_" data-uid="TorchSharp.RandomGenerator.NextDouble*"></a>
  <h4 id="TorchSharp_RandomGenerator_NextDouble" data-uid="TorchSharp.RandomGenerator.NextDouble">NextDouble()</h4>
  <div class="markdown level1 summary"><p>Generates a uniform random double on [0,1).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double NextDouble ();</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>Generates a uniform random double on [0,1).</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_RandomGenerator_NextDouble_" data-uid="TorchSharp.RandomGenerator.NextDouble*"></a>
  <h4 id="TorchSharp_RandomGenerator_NextDouble_System_Double_System_Double_" data-uid="TorchSharp.RandomGenerator.NextDouble(System.Double,System.Double)">NextDouble(Double, Double)</h4>
  <div class="markdown level1 summary"><p>Generates a uniform random double on [a,b).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double NextDouble (double a, double b);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">a</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">b</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>Generates a uniform random double on [a, b).</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_RandomGenerator_NextExponentialDouble_" data-uid="TorchSharp.RandomGenerator.NextExponentialDouble*"></a>
  <h4 id="TorchSharp_RandomGenerator_NextExponentialDouble_System_Double_" data-uid="TorchSharp.RandomGenerator.NextExponentialDouble(System.Double)">NextExponentialDouble(Double)</h4>
  <div class="markdown level1 summary"><p>Generates a random number from an exponential distribution.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double NextExponentialDouble (double lambda);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">lambda</span></td>
        <td><p>Must be a positive number</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="TorchSharp_RandomGenerator_NextExponentialDouble_System_Double__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>The density is $p(x) = lambda * exp(-lambda * x)$, where lambda is a positive number.</p>
</div>
  
  
  <a id="TorchSharp_RandomGenerator_NextFloat_" data-uid="TorchSharp.RandomGenerator.NextFloat*"></a>
  <h4 id="TorchSharp_RandomGenerator_NextFloat_System_Single_System_Single_" data-uid="TorchSharp.RandomGenerator.NextFloat(System.Single,System.Single)">NextFloat(Single, Single)</h4>
  <div class="markdown level1 summary"><p>Generates a uniform random float on [a,b).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double NextFloat (float a, float b);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">a</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Single</span></td>
        <td><span class="parametername">b</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>Generates a uniform random float on [a, b).</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_RandomGenerator_NextGeometricDouble_" data-uid="TorchSharp.RandomGenerator.NextGeometricDouble*"></a>
  <h4 id="TorchSharp_RandomGenerator_NextGeometricDouble_System_Double_System_Double_" data-uid="TorchSharp.RandomGenerator.NextGeometricDouble(System.Double,System.Double)">NextGeometricDouble(Double, Double)</h4>
  <div class="markdown level1 summary"><p>Generates a random number from a geometric distribution.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double NextGeometricDouble (double mean, double p);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">mean</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">p</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="TorchSharp_RandomGenerator_NextGeometricDouble_System_Double_System_Double__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>It returns an integer i, where p(i) = (1-p) * p^(i-1).
            p must satisfy $0 &lt; p &lt; 1</p>
</div>
  
  
  <a id="TorchSharp_RandomGenerator_NextLogNormalDouble_" data-uid="TorchSharp.RandomGenerator.NextLogNormalDouble*"></a>
  <h4 id="TorchSharp_RandomGenerator_NextLogNormalDouble_System_Double_System_Double_" data-uid="TorchSharp.RandomGenerator.NextLogNormalDouble(System.Double,System.Double)">NextLogNormalDouble(Double, Double)</h4>
  <div class="markdown level1 summary"><p>Generates a random number from a log-normal distribution.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double NextLogNormalDouble (double mean, double stddev);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">mean</span></td>
        <td><blockquote><p>0 is the mean of the log-normal distribution</p>
</blockquote>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">stddev</span></td>
        <td><p>is its standard deviation.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>To be added.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_RandomGenerator_NextNormalDouble_" data-uid="TorchSharp.RandomGenerator.NextNormalDouble*"></a>
  <h4 id="TorchSharp_RandomGenerator_NextNormalDouble_System_Double_System_Double_" data-uid="TorchSharp.RandomGenerator.NextNormalDouble(System.Double,System.Double)">NextNormalDouble(Double, Double)</h4>
  <div class="markdown level1 summary"><p>Generates a random number from a normal distribution.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double NextNormalDouble (double mean, double stdev);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">mean</span></td>
        <td><p>Mean for the distribution</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">stdev</span></td>
        <td><p>Stanard deviation for the distribution, &gt; 0</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>Generates a number for the normal distribution.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_RandomGenerator_NextUInt32_" data-uid="TorchSharp.RandomGenerator.NextUInt32*"></a>
  <h4 id="TorchSharp_RandomGenerator_NextUInt32" data-uid="TorchSharp.RandomGenerator.NextUInt32">NextUInt32()</h4>
  <div class="markdown level1 summary"><p>Generates a uniform 32 bits integer.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public uint NextUInt32 ();</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.UInt32</span></td>
        <td><p>UInt32 random value.</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_RandomGenerator_NextUInt64_" data-uid="TorchSharp.RandomGenerator.NextUInt64*"></a>
  <h4 id="TorchSharp_RandomGenerator_NextUInt64" data-uid="TorchSharp.RandomGenerator.NextUInt64">NextUInt64()</h4>
  <div class="markdown level1 summary"><p>Generates a uniform 64 bits integer.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public ulong NextUInt64 ();</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.UInt64</span></td>
        <td><p>UInt64 random value.</p>
</td>
      </tr>
    </tbody>
  </table>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Copyright © 2015-2017 Microsoft<br>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../../styles/docfx.js"></script>
    <script type="text/javascript" src="../../styles/main.js"></script>
  </body>
</html>
